package per.destiny.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import per.destiny.vo.R;

import java.util.Date;

/**
 * <一句话说明类的作用>
 *
 * @author zhangbaocheng
 * @date 2022-05-17 09:05
 */
@RestController
@RequestMapping("/api/product")
@Api(tags = "商品管理")
public class ProductController {


    @ApiOperation("测试接口")
    @GetMapping("/test")
    public R test() {
        return R.ok().data("message", "hello").data("now", new Date());
    }
}
